

# 在函数中调用函数

fml = {
        "one":{
            "name":"离谱",
            "mother":"离谱他妈"
        },
        "two":{
            "name":"正经",
            "mother":"正经他妈"
        }
    }

# 专门处理开门的函数
def openDoor(name):
    mother = getMotherByName(name)
    print(mother + "给" + name + "开门，" + name + "到家了！")


def sleep(name):
    mother = getMotherByName(name)
    print(mother + "带着" + name + "睡觉。" )


# 用来获取 主角 的妈妈的函数
def getMotherByName(name):
    for i in fml:
        if fml[i]['name'] == name:
            return fml[i]['mother']
    return "没找到妈妈"


name = input("姓名：")
openDoor(name)
sleep(name)
